package com.app.designpatternslearn.structured.bridgepattern

import com.app.designpatternslearn.structured.bridgepattern.code.*

fun main() {

    val bigPen = BigPen()
    bigPen.color = Red()
    val smallPen = SmallPen()
    smallPen.color = Blue()
    val middlePen = MiddlePen()
    middlePen.color = Green()

    bigPen.draw("头")

    smallPen.draw("房子")

    middlePen.draw("脚")
}